<?php

class Core_Frontend_Module_Road_Latest_Config extends Core_Module_Config {

    public function buildForm($form, $parameters = array()) {
//        $form->addComboTreeField($this->__('subject.label.category'),'category_id','module[parameters][category_id]')
//                ->bindData($categories->toArray(), 0, array('valueKey' => 'id', 'textKey' => 'name', 'parentKey' => 'parent_id', 'childKey' => 'id'))
//                ->setDefaultOption('', '--');
//        $form->addSelectField($this->__('article.label.condition'),'condition','module[parameters][condition]')
//                ->setOption($this->__('article.label.clickcount'),'click_count')
//                ->setOption($this->__('article.label.modified_time'),'modified_time')
//                ->setOption($this->__('article.label.hot'), 'hot')
//                ->setOption($this->__('article.label.new'), 'new')
//                ->setOption($this->__('article.label.top'), 'top');
        $form->addTextBoxField($this->__('share.label.item_count'),'item_count','module[parameters][item_count]')
             ->addRequiredRule()
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.image_count'),'image_count','module[parameters][image_count]')
             ->setValue(0)
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.introduction_count'),'introduction_count','module[parameters][introduction_count]')
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.introduction_size'),'introduction_size','module[parameters][introduction_size]')
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.image_width'),'image_width','module[parameters][image_width]')
             ->setValue(0)
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.image_height'),'image_height','module[parameters][image_height]')
             ->setValue(0)
             ->addDigitsRule();
    }

}